﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SetRegionUC
{
    class Number
    {
        public static bool isNumberBoundedBelow(string s, int min)
        {
            return isNumberBounded(s, min, int.MaxValue);
        }

        public static bool isNumberBounded(string s, int min, int max)
        {
            int value;
            if (!int.TryParse(s, out value) || value < min || value > max)
                return false;
            return true;
        }
    }
}
